package cn.edu.hzvtc.haowen.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.edu.hzvtc.haowen.common.annotation.Excel;
import cn.edu.hzvtc.haowen.common.core.domain.BaseEntity;

/**
 * 问卷模板对象 wenjuan_template
 *
 * @author haowen
 * @date 2024-05-08
 */
public class WenjuanTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷模板 id */
    private Integer templateId;

    /** 问卷模板 uuid */
    @Excel(name = "模板uuid")
    private String templateUuid;

    /** 问卷模板 标题 */
    @Excel(name = "模板标题")
    private String templateTitle;

    /** 问卷模板 内容 json字符串，同wenjuan_info */
    private String templateContent;

    /** 模板状态（1创建中 2可用） */
    @Excel(name = "模板状态", readConverterExp = "1=创建中,2=可用")
    private String status;

    @Excel(name = "创建人")
    private String createBy;

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setTemplateId(Integer templateId)
    {
        this.templateId = templateId;
    }

    public Integer getTemplateId()
    {
        return templateId;
    }
    public void setTemplateUuid(String templateUuid)
    {
        this.templateUuid = templateUuid;
    }

    public String getTemplateUuid()
    {
        return templateUuid;
    }
    public void setTemplateTitle(String templateTitle)
    {
        this.templateTitle = templateTitle;
    }

    public String getTemplateTitle()
    {
        return templateTitle;
    }
    public void setTemplateContent(String templateContent)
    {
        this.templateContent = templateContent;
    }

    public String getTemplateContent()
    {
        return templateContent;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("templateUuid", getTemplateUuid())
            .append("templateTitle", getTemplateTitle())
            .append("templateContent", getTemplateContent())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
